package com.ultrasoft.farmasoft.repository;

import java.util.List;

import com.ultrasoft.farmasoft.domain.Item;

public interface ItemDao {
	public List<Item> getListItem();
	public List<Item> getListItemByPackageId(Integer packageId);
	public List<Item> getListItemByPackageIdByState(Integer packageId,short state);
	public List<Item> getListItemByItemId(Integer itemId);
	public List<Item> getListItemByStockId(Integer stockId);
	public List<Item> getListItemByStockIdByProviderId(Integer stockId,Integer providerId);
	public List<Item> getListItemByPharmacyId(Integer pharmacyId);
	public List<Item> getListItemByPharmacyIdByStockId(Integer pharmacyId,Integer stockId);
	public List<Item> getListItemByPharmacyIdByStockIdByPackageId(Integer pharmacyId,Integer stockId,Integer packageId);
	public List<Item> getListItemByPharmacyIdByStockIdByPackageId(Integer stockId,Integer packageId);
	public List<Item> getListItemByPharmacyIdByStockIdByPackageIdByState(Integer stockId,Integer packageId,short state);
	public Item findItemByPackageIdByItemId(Integer packageId,Integer itemId);	
	public Integer findByItemIdMax(Integer packageId);
    public void update(Item item);
	public void add(Item item);
	
	public List<Item> getListFind();
}
